﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assignment9.Models {
 
    public class Customer
    {
        public string Id { get; set; }
        public string Name { get; set; }
        bool IsVIP { get; set; }

        public Customer()
        {
            Id = Guid.NewGuid().ToString();
        }
        
        public bool getIsVIP() { return IsVIP; }
        public string getName() { return Name; }
        public Customer(string name) : this()
        {
            Name = name;
            IsVIP = false;
        }
        public Customer(string name, bool isVIP) : this()
        {
            Name = name;
            IsVIP = isVIP;
        }
        public void setCustomerVIP(bool v)
        {
            IsVIP = v;
        }
        public override string ToString()
        {
            return Name;
        }

        public override bool Equals(object obj)
        {
            var customer = obj as Customer;
            return customer != null &&
                   Id == customer.Id &&
                   Name == customer.Name;
        }

        
    }
}
